package com.tabjin.rfidsocket.mapper.mapper;

import com.tabjin.rfidsocket.pojo.vo.SysRoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleCustomMapper {
    //    List<SysRoleVO> getAll(@Param("name") String name,
//                           @Param("id") Integer id);
    List<SysRoleVO> getAll();

    Integer countByName(@Param(value = "name") String roleName,
                        @Param(value = "id") String roleId);

    List<SysRoleVO> getByIdList(@Param(value = "roleIdList") List<Integer> roleIdList);
}